<layout name='layoutP' />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>项目考核表</title>
<load href="__PUBLIC__/Js/Jquery/jquery.form.js" />
<script type="text/javascript">
	function messagebox(msg) {
		$("#message-details").html(msg);
		$("#dialog:ui-dialog").dialog("destroy");
		$("#dialog-message").dialog({
			width : 360,
			height : 230,
			buttons : {
				确认 : function() {
					$(this).dialog("close");
				}
			}
		});
	}
	
	$(function() {
		$("#form1").validationEngine();
		 $( "#dialog-message" ).hide();
		 
		$("#myTable tr .normal").click(
				function() {
				
				});

		$( "#date" ).datepicker({
			changeMonth: true,
			changeYear: true
		});
		$("#date").datepicker($.datepicker.regional['zh-CN']);

		$('#form1').ajaxForm({
			success : complete, // post-submit callback
			dataType : 'json'
		});
	
		
		 function complete(data){
	            if (data.status==1){
	            	
	               messagebox(data.info);
	            }else{
	        
	            	 messagebox(data.info);
	            }
		 };
	});
	
</script>
</head>
<body>

<div id="wrapper"> 
 
    <div class="form-container">    
    <form id="form1" action="__URL__/postinvest_7_add" method="post">     
    <fieldset> 
	 <legend>项目考核表</legend> 
	 <div><label for="type" >类型 </label> 
	<select id="type" name="type">
	<option>项目参与人及贡献权重</option>
    <option>投后管理人员的贡献</option>  
	</select>	
	</div>
           	<div><label for="person" >参与人员 </label> 
			<input class="validate[required] text-input"  id="person" type="text" name="person"  />
             </div> 
			<div><label for="work" >工作说明 </label> 
			<input class="validate[required] text-input"  id="work" type="text" name="work"  />
             </div> 
			  	<div><label for="dim" >贡献权重 </label> 
			<input class="validate[required] text-input"  id="dim" type="text" name="dim"  />
             </div> 

    </fieldset> 
   
    <div class="buttonrow"> 
        <input type="submit" value="提交" class="button" /> 
    </div> 
 
    </form> 
	<h2>项目参与人及贡献权重</h2>
 <present name="list1">
<div>
<table id="myTable" class="tablesorter">
	<thead>
		<tr>
			<th style="display: none">idexamine</th>
			<th>参与人员</th>
			<th>工作说明</th>
			<th>贡献权重</th>
		</tr>
	</thead>
	<tbody>
		<volist name="list1" id="vo">
		<tr>
			<td class="normal" style="display: none">{$vo['idexamine']}</td>
			<td class="normal">{$vo['person']}</td>
			<td class="normal">{$vo['work']}</td>
			<td class="normal">{$vo['dim']}</td>
		</tr>
		</volist>
	</tbody>
</table>
</div>
<div>{$page1}</div>
<else />
<h2>没有记录</h2>
</present>
	<h2>投后管理人员的贡献</h2>
<present name="list2">
<div>
<table id="myTable" class="tablesorter">
	<thead>
		<tr>
			<th style="display: none">idexamine</th>
			<th>参与人员</th>
			<th>工作说明</th>
			<th>贡献权重</th>
		</tr>
	</thead>
	<tbody>
		<volist name="list2" id="vo">
		<tr>
			<td class="normal" style="display: none">{$vo['idexamine']}</td>
			<td class="normal">{$vo['person']}</td>
			<td class="normal">{$vo['work']}</td>
			<td class="normal">{$vo['dim']}</td>
		</tr>
		</volist>
	</tbody>
</table>
</div>
<div>{$page1}</div>
<else />
<h2>没有记录</h2>
</present>
    </div><!-- /form-container --> 
    

</div><!-- /wrapper --> 
	
<div id="dialog-message" title="添加完成">
<p><span class="ui-icon ui-icon-circle-check"
	style="float: left; margin: 0 7px 50px 0;"></span> <span
	id="message-details"></span></p>
</div>




</body>
